package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 学习资源对象 t_resources
 *
 * @author Tellsea
 * @date 2023-02-17
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class TResources extends BaseEntity {

    /**
     * $column.columnComment
     */
    private Long id;

    private Long resId;

    /**
     * 资源名称
     */
    @Excel(name = "资源名称")
    private String resName;

    /**
     * 资源类型（字典表）
     */
    @Excel(name = "资源类型", readConverterExp = "字=典表")
    private String resType;

    /**
     * 资源格式
     */
    private String resFormat;

    /**
     * 资源说明
     */
    @Excel(name = "资源说明")
    private String resRemake;

    /**
     * 资源大小
     */
    private Long resSize;

    private Integer resState;

    /**
     * 文件下载次数（热度）
     */
    private Long resDownloadCount;

    /**
     * 数据状态 1-正常 2-删除
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer deleteStatus;

    @TableField(exist = false)
    private SysFileInfo sysFileInfo;

}
